package com.hdoit.apollo.web.stock.modelconfig;

import com.hdoit.apollo.web.shop.providers.SupplierProvider;
import com.tennetcn.web.component.attribute.DisplayNameAttribute;
import com.tennetcn.web.component.attribute.DropDownListAttribute;
import com.tennetcn.web.component.attribute.base.ModelMetadataAttributeConfiguration;

public class InStockSearchConfig extends ModelMetadataAttributeConfiguration{
	 public InStockSearchConfig(){
		 this.setProperty("inStockNo")
         .hasAttribute(new DisplayNameAttribute("退货单号"));

     this.setProperty("supplierId")
         .hasAttribute(new DisplayNameAttribute("供应商"))
     	 .hasAttribute(new DropDownListAttribute(new SupplierProvider()));  
     
     this.setProperty("startDate")
     	 .hasAttribute(new DisplayNameAttribute("开始时间"));

	    this.setProperty("endDate")
	      .hasAttribute(new DisplayNameAttribute("至"));

	    }
}
